/*
2. Write a program that shows the sign (+ or -) of the product of three real numbers without calculating it. Use a sequence of if statements.
*/
using System;

class signOfProduct
{
    static void Main()
    {
        Console.Write("Enter the first number: ");
        float firstNumber = float.Parse(Console.ReadLine());
        Console.Write("Enter the second number: ");
        float secondNumber = float.Parse(Console.ReadLine());
        Console.Write("Enter the third number: ");
        float thirdNumber = float.Parse(Console.ReadLine());
        byte negativeSigns = 0;
        byte numberOfZeros = 0;
        if (firstNumber < 0) negativeSigns++;
        else if (firstNumber == 0) numberOfZeros++;
        if (secondNumber < 0) negativeSigns++;
        else if (secondNumber == 0) numberOfZeros++;
        if (thirdNumber < 0) negativeSigns++;
        else if (thirdNumber == 0) numberOfZeros++;
        if (numberOfZeros > 0)
        {
            Console.WriteLine("The product of {0}, {1} and {2} is zero ", firstNumber, secondNumber, thirdNumber);
        }
        else if ((negativeSigns % 2) == 0)
        {
            Console.WriteLine("The sign (+ or -) of the product of {0}, {1} and {2} is + ", firstNumber, secondNumber, thirdNumber);
        }
        else
        {
            Console.WriteLine("The sign (+ or -) of the product of {0}, {1} and {2} is - ", firstNumber, secondNumber, thirdNumber);
        }
    }
}
